home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / security / IdentityScope.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  2.2 KB  |  76 lines

  1. package java.security;
  2.  
  3. import java.util.Enumeration;
  4.  
  5. /** @deprecated */
  6. @Deprecated
  7. public abstract class IdentityScope extends Identity {
  8.    private static final long serialVersionUID = -2337346281189773310L;
  9.    private static IdentityScope scope;
  10.  
  11.    private static void initializeSystemScope() {
  12.       String var0 = (String)AccessController.doPrivileged(new 1());
  13.       if (var0 != null) {
  14.          try {
  15.             Class.forName(var0);
  16.          } catch (ClassNotFoundException var2) {
  17.             var2.printStackTrace();
  18.          }
  19.  
  20.       }
  21.    }
  22.  
  23.    protected IdentityScope() {
  24.       this("restoring...");
  25.    }
  26.  
  27.    public IdentityScope(String var1) {
  28.       super(var1);
  29.    }
  30.  
  31.    public IdentityScope(String var1, IdentityScope var2) throws KeyManagementException {
  32.       super(var1, var2);
  33.    }
  34.  
  35.    public static IdentityScope getSystemScope() {
  36.       if (scope == null) {
  37.          initializeSystemScope();
  38.       }
  39.  
  40.       return scope;
  41.    }
  42.  
  43.    protected static void setSystemScope(IdentityScope var0) {
  44.       check("setSystemScope");
  45.       scope = var0;
  46.    }
  47.  
  48.    public abstract int size();
  49.  
  50.    public abstract Identity getIdentity(String var1);
  51.  
  52.    public Identity getIdentity(Principal var1) {
  53.       return this.getIdentity(var1.getName());
  54.    }
  55.  
  56.    public abstract Identity getIdentity(PublicKey var1);
  57.  
  58.    public abstract void addIdentity(Identity var1) throws KeyManagementException;
  59.  
  60.    public abstract void removeIdentity(Identity var1) throws KeyManagementException;
  61.  
  62.    public abstract Enumeration<Identity> identities();
  63.  
  64.    public String toString() {
  65.       return super.toString() + "[" + this.size() + "]";
  66.    }
  67.  
  68.    private static void check(String var0) {
  69.       SecurityManager var1 = System.getSecurityManager();
  70.       if (var1 != null) {
  71.          var1.checkSecurityAccess(var0);
  72.       }
  73.  
  74.    }
  75. }
  76.